package com.wanshi.controller;

import com.wanshi.entity.Cust;
import com.wanshi.service.ICustService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/lv")
public class LVController {

    @Autowired
    private ICustService custService;

    //查询全部用户
    @GetMapping("/all")
    public List<Cust> findAll(){
        return custService.list();
    }
}
